/*
 *  Text.h
 *  3D Engine GLUT
 *
 *  Created by Alex Nesta on 2/26/10.
 *  Copyright 2010 Holy Cross High School. All rights reserved.
 *
 */

//////////////////
//Variables
//////////////////

string Title = "The Space Embassy: Conquest";
string Campaign = "Campaign";
string Controls = "Controls";
string Options = "Options";
string Exit = "Exit";

void DrawText (GLfloat x, GLfloat y, void *font, string s) // function created to ease text drawing
{
	glRasterPos3f(x, y, 0); // sets the point for text at (x, y)
	
	for (int i = 0; i < s.length (); i++) // this goes through all characters of the apstring
	{
		glutBitmapCharacter (font, s[i]); // now, they are printed, one by one, to the window
	}
}

void LoadText (void)
{
	glColor3f(.5, 1, .25);
	DrawText(-100,90,GLUT_BITMAP_TIMES_ROMAN_24,Title);
	glColor3f(0, 0, 1);
	DrawText(-100,80,GLUT_BITMAP_HELVETICA_18,Campaign);
	DrawText(-100,70,GLUT_BITMAP_HELVETICA_18,Controls);
	DrawText(-100,60,GLUT_BITMAP_HELVETICA_18,Options);
	DrawText(-100,50,GLUT_BITMAP_HELVETICA_18,Exit);
}